import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class LoginBackground extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false);

    return GestureDetector(
      behavior: HitTestBehavior.translucent,
      onTap: ()async {
        FocusScope.of(context).requestFocus(FocusNode());
      },
      child: Container(
        width: 750.w,
        height: 750.w,
        decoration: BoxDecoration(
          image: DecorationImage(
            image: AssetImage('assets/login_bg.png'),
            fit: BoxFit.cover,
          ),
        ),
      ),
    );
  }
}